package com.haredot.entity;

import lombok.AllArgsConstructor;
import lombok.Builder;
import lombok.Data;
import lombok.NoArgsConstructor;

import javax.validation.constraints.NotNull;

@Data
@Builder
@AllArgsConstructor
@NoArgsConstructor
public class Mark {
    private Integer id;

    /**
    * 学号
    */
    @NotNull(message = "学号不允许为空")
    private Long stuId;

    /**
    * 课程号
    */
    @NotNull(message = "课程不允许为空")
    private Integer courseId;

    /**
    * 成绩
    */
    @NotNull(message = "成绩不允许为空")
    private Integer mark;
}